Skip to content

Open chat file links in viewer or editor#48

Merged
BunsDev merged 1 commit into
mainfrom
okcode/chat-file-links
Mar 28, 2026
Merged

Open chat file links in viewer or editor#48
BunsDev merged 1 commit into
mainfrom
okcode/chat-file-links

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Mar 28, 2026

Summary

  • Route markdown file links through a shared file-opening helper so chat references can open in the code viewer or the preferred external editor.
  • Respect the openLinksExternally app setting when deciding whether to open a link in OK Code or hand it off to the OS/editor.
  • Add path parsing and cwd-relative resolution helpers to support file links with :line[:column] suffixes.
  • Cover the new file-target parsing and relative path resolution behavior with unit tests.

Testing

  • bun fmt
  • bun lint
  • bun typecheck
  • bun run test

- Route markdown file links through shared file-open logic
- Add code viewer path resolution with tests
- Show a toast when opening a file fails
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 28, 2026 4:42am

@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 28, 2026
@BunsDev BunsDev merged commit ccf0e92 into main Mar 28, 2026
8 of 9 checks passed
@BunsDev BunsDev deleted the okcode/chat-file-links branch March 31, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant